<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\Post */

$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Posts'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="post-view">

    <h1></h1>
    <section id="article-wrapper">
        <div class="container">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <h3 id="article-title">
                        <?= Html::encode($this->title) ?>
                    </h3>
                    <div id="article-info" class="clearfix">
                        <div class="pull-left">
                            类型：<a id="article-type"><?= Html::encode($model->type) ?></a>
                        </div>
                        <div class="pull-right">
                            发布时间：<span id="article-time"><?= Html::encode($model->createat) ?></span>
                        </div>
                    </div>
                    <div id="article-content">
                        <?php
                            echo $model->content;
                        ?>
                    </div>
                </div>
            </div>

        </div>
    </section>

</div>
